package c.j.a.d.b.c;

import android.database.sqlite.SQLiteStatement;
import com.ss.android.socialbase.downloader.g.c;
import java.util.Objects;

/* compiled from: SqlDownloadCache */
public class f implements Runnable {
    public final /* synthetic */ c a;
    public final /* synthetic */ e b;

    public f(e eVar, c cVar) {
        this.b = eVar;
        this.a = cVar;
    }

    public void run() {
        try {
            e eVar = this.b;
            c cVar = this.a;
            SQLiteStatement a = eVar.b.a();
            Objects.requireNonNull(eVar);
            if (cVar != null && a != null) {
                try {
                    synchronized (a) {
                        cVar.q(a);
                        a.executeInsert();
                    }
                } catch (Throwable th) {
                    th.printStackTrace();
                }
            }
        } catch (Throwable th2) {
            th2.printStackTrace();
        }
    }
}
